package net.xju_17_18.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component("stu1")  // 指定一个bean
public class Stu {

    @Value("123")
    private int sid;
    @Value("lisi")
    private String name;
}
